<?php

$this->breadcrumbs = array(
	$model->label(2) => array('index'),
	Yii::t('app', 'Manage'),
);

$this->menu = array(
		array('label'=>Yii::t('app', 'List') . ' ' . $model->label(2), 'url'=>array('index')),
		array('label'=>Yii::t('app', 'Create') . ' ' . $model->label(), 'url'=>array('create')),
	);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('complaint-master-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1><?php echo Yii::t('app', 'Manage') . ' ' . GxHtml::encode($model->label(2)); ?></h1>

<p>
You may optionally enter a comparison operator (&lt;, &lt;=, &gt;, &gt;=, &lt;&gt; or =) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php echo GxHtml::link(Yii::t('app', 'Advanced Search'), '#', array('class' => 'search-button')); ?>
<div class="search-form">
<?php $this->renderPartial('_search', array(
	'model' => $model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id' => 'complaint-master-grid',
	'dataProvider' => $model->search(),
	'filter' => $model,
	'columns' => array(
		'Complaint_no',
		'tempcom_no',
		'comp_no',
		'Name',
		'City',
		'State',
		/*
		'District',
		'Cell_No',
		'Contact_No',
		'University',
		'University_email',
		'Complaint_against',
		'Call_date',
		'login_name',
		'parent_name',
		'parent_phno',
		'college_name',
		'call_type',
		'Gender',
		'Police_Station',
		'Victim_Name',
		'Relation',
		'Supervisor',
		'caller_email',
		'comptype',
		'freezecomp',
		'dma',
		'dugc',
		'encryptdata',
		'punishmentdetails',
		'ndcontact_no',
		'ndName',
		'ndcell_no',
		'ndVICTIM_NAME',
		'ndparent_name',
		'ndParent_Phno',
		'ndcaller_email',
		'ndcomplaint_against',
		'adminpass',
		'studentpass',
		'duplicatecomp',
		'drp',
		'reactivation',
		'desk_name',
		'name_status',
		'reg_authority',
		'reg_authority_code',
		'dcc',
		'actualstatus',
		'typeofcomplaint',
		'loginid',
		'di',
		'affdown',
		'fir',
		'typema',
		*/
		array(
			'class' => 'CButtonColumn',
		),
	),
)); ?>